home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Viewers / aa_m68k_Intel_Only / ToyViewer1.2 / Source / ToyWin.h < prev    next >
Encoding:
Text File  |  1995-11-12  |  1.5 KB  |  71 lines

  1. #import <objc/Object.h>
  2. #import "common.h"
  3.  
  4. @class NXImage, Window, ToyView;
  5.  
  6. #define  mini_YET    0
  7. #define  mini_DEMINI    1
  8. #define  mini_MINI    2
  9.  
  10. @interface ToyWin: Object
  11. {
  12.     id    thiswindow;
  13.     id    scView;
  14.     id    commentText;
  15.     id    controller;
  16.     float    scaleFactor;
  17.     char    *imageFilename;
  18.     id    messagePanel;
  19.     id    messageText;
  20.     id    scalePanel;
  21.     id    scaleText;
  22.     int    miniFlag;
  23. }
  24.  
  25. - init: sender;
  26. - free;
  27. - (char *)filename;
  28. - (Window *)window;
  29. - toyView;
  30. - reScale: sender;
  31. - fitScale: sender;
  32. - setScale: sender;
  33. - initLocateWindow:(const char *)fileName
  34.     Width:(int)width Height:(int)height Num:(int)num;
  35. - locateWindow: (int)width : (int)height init:(BOOL)is_init num:(int)wnum;
  36.  
  37. /* delegate methods */
  38. - windowWillMiniaturize:sender toMiniwindow:miniwindow;
  39. - windowDidDeminiaturize:sender;
  40. - windowWillClose:sender;
  41. - windowDidBecomeKey:sender;
  42. - windowDidExpose:sender;
  43. - windowDidMove:sender;
  44.  
  45. @end
  46.  
  47.  
  48. @interface ToyWin (Drawing)
  49.  
  50. - (int)drawToyWin:(const char *)fileName Type:(int)type Num:(int)num;
  51. - drawView:(unsigned char **)map info:(commonInfo *)cinf;
  52. - (int)drawFromFile:(const char *)fileName or:(NXStream *)stream Num:(int)num;
  53. - makeComment:(commonInfo *)cinf;
  54.  
  55. @end
  56.  
  57.  
  58. @interface ToyWin (ImageSave)
  59.  
  60. - print: sender;
  61. - saveAsTiff: sender;
  62. - saveAsEPS: sender;
  63. - saveAs: (int)itype;
  64. - (int)getBitmap:(unsigned char **)map info:(commonInfo **)infp;
  65. - freeTempBitmap;
  66. - (char *)getSavename: (const char *)path with:(int)itype;
  67. - (char *)getSaveTiffname: (const char *)path jpeg: (BOOL)flag
  68.     compress: (int *)type by: (float *)factor;
  69.  
  70. @end
  71.